package com.my.study.design.rule;

/**
 * 规则执行器执行结果
 *
 * @author: yidujun
 * @create: 2021/07/09 21:33
 */
public class RuleExecuteResult {

    public enum EnumRuleResult{
        // 继续
        CONTINUE,
        // 返回
        RETURN,
        // 舍弃
        ABANDON;
    }

    private EnumRuleResult enumRuleResult;
    private Object result;

    public RuleExecuteResult(EnumRuleResult enumRuleResult, Object result) {
        this.enumRuleResult = enumRuleResult;
        this.result = result;
    }

    public EnumRuleResult getEnumRuleResult() {
        return enumRuleResult;
    }

    public void setEnumRuleResult(EnumRuleResult enumRuleResult) {
        this.enumRuleResult = enumRuleResult;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}
